﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="hrViewEmployeeInfo.aspx.cs" Inherits="ZX.WebApp.EHR.hrViewEmployeeInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>查看员工详细信息</title>
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/json/json-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/connection/connection-min.js"></script>
    <script type="text/javascript" src="../Scripts/Public.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
//            //获取工作经历信息
//            var empId = getPar1("id");
//            var url = "../Extend/AjaxData/jsonlist.aspx?entity=hrEmployeeExperiences&condition=EmployeeID='" + empId + "'";
//            $.get(url, function (d, s) {
//                var list = eval("(" + d + ")");
//                if (list.total > 0) {
//                    $("#hrEmployeeExperiences").append("<br /><span style='color: #0000C6; font-size: large;'>工作经验：</span>");
//                    for (var o in list.rows) {
//                        var CompanyName = list.rows[o].CompanyName; //公司名称
//                        var Department = list.rows[o].Department; //所在部门
//                        var Title = list.rows[o].Title; //职位
//                        var BeginDate = list.rows[o].BeginDate; //入职日期
//                        var EndDate = list.rows[o].EndDate; //离职日期
//                        var Boss = list.rows[o].Boss; //上司姓名
//                        var PhoneNo = list.rows[o].PhoneNo; //联系电话
//                        var Salary = list.rows[o].Salary; //薪资
//                        var Perfermences = list.rows[o].Perfermences; //业绩描述
//                        var LeaveReason = list.rows[o].LeaveReason; //离职原因
//                        var content = "<table style='width: 1100px'><tbody><tr><td align='right' class='style7'>公司名称：</td><td class='style4'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='CompanyName'/></td><td align='right' class='style3'>所属部门：</td><td class='style2'><input style='background-color: whitesmoke;'  type='text' readonly='readonly' value='Department' /></td><td align='right' class='style8'>职位：</td><td class='style1'><input style='background-color: whitesmoke;'  type='text' readonly='readonly' value='Title'/></td> <td align='right' class='style7'>上司姓名:</td> <td><input style='background-color: whitesmoke;'  type='text' readonly='readonly' value='Boss'/></td> </tr><tr><td align='right' class='style7'>联系电话</td><td class='style6'><input style='background-color: whitesmoke;'  type='text' readonly='readonly' value ='PhoneNo'/></td><td align='right' class='style3'>入职日期：</td><td class='style2'><input style='background-color: whitesmoke;'  type='text' readonly='readonly' value='BeginDate'/></td><td align='right' class='style8'>离职日期：</td><td class='style1'><input style='background-color: whitesmoke;'  type='text' readonly='readonly' value='EndDate'/></td><td align='right' class='style7'> 薪资:</td><td><input style='background-color: whitesmoke;'  type='text' readonly='readonly' value='Salary'/></td></tr><tr><td align='right' class='style7'>业绩描述:</td><td class='style2' colspan='3'><textarea style='background-color: whitesmoke;' class='textarea1' rows='3' cols='20' name='S1' readonly='readonly'>Perfermences</textarea></td><td align='right' class='style8'>离职原因：</td><td class='style1' colspan='3'><textarea style='background-color: whitesmoke;' class='textarea2' rows='3' cols='20'  name='S2' readonly='readonly'>LeaveReason</textarea></td></tr></tbody></table>";
//                        content = content.replace("CompanyName", CompanyName);
//                        content = content.replace("Department", Department);
//                        content = content.replace("Title", Title);
//                        content = content.replace("BeginDate", BeginDate);
//                        content = content.replace("EndDate", EndDate);
//                        content = content.replace("Boss", Boss);
//                        content = content.replace("PhoneNo", PhoneNo);
//                        content = content.replace("Salary", Salary);
//                        content = content.replace("Perfermences", Perfermences);
//                        content = content.replace("LeaveReason", LeaveReason);
//                        $("#hrEmployeeExperiences").append(content);
//                    }
//                }
//            });
//            //获取项目经验
//            url = "../Extend/AjaxData/jsonlist.aspx?entity=hrEmployeeProjects&condition=EmployeeID='" + empId + "'";
//            $.get(url, function (d, s) {
//                var list = eval("(" + d + ")");
//                if (list.total > 0) {
//                    $("#hrEmployeeProjects").append("<br /><span style='color: #0000C6; font-size: large;'>项目经验：</span>");
//                    for (var o in list.rows) {
//                        var ProjectName = list.rows[o].ProjectName; //项目名称
//                        var Partners = list.rows[o].Partners; //参与人数
//                        var BeginDate = list.rows[o].BeginDate; //项目开始日期
//                        var EndDate = list.rows[o].EndDate; //项目结束日期
//                        var Fee = list.rows[o].Fee; //项目成本
//                        var ProjectDesc = list.rows[o].ProjectDesc; //项目描述
//                        var Responsibility = list.rows[o].Responsibility; //职责
//                        var Role = list.rows[o].Role; //担任角色
//                        var content = "<table style='width: 1100px'><tbody><tr><td align='right' class='style7'>项目名称：</td><td class='style4'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='ProjectName'/></td><td align='right' class='style3'>参与人数：</td><td class='style2'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='Partners' /></td><td align='right' class='style8'>开始时间：</td><td class='style1'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='BeginDate'/></td> <td align='right' class='style7'>结束时间:</td> <td><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='EndDate'/></td> </tr><tr><td align='right' class='style7'>项目成本：</td><td class='style6'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value ='Fee'/></td><td align='right' class='style3'>担任角色：</td><td class='style2'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='Role'/></td><td class='style8'>&nbsp;</td><td class='style1' colspan='3'>&nbsp;</td></tr><tr><td align='right' class='style7'>项目描述:</td><td class='style2' colspan='3'><textarea style='background-color: whitesmoke;' class='textarea1'  rows='3' cols='20' name='S1' readonly='readonly'>ProjectDesc</textarea></td><td align='right' class='style8'>职责：</td><td class='style1' colspan='3'><textarea style='background-color: whitesmoke;' class='textarea2' rows='3' cols='20'  name='S2' readonly='readonly'>Responsibility</textarea></td></tr></tbody></table>";
//                        content = content.replace("ProjectName", ProjectName);
//                        content = content.replace("Partners", Partners);
//                        content = content.replace("BeginDate", BeginDate);
//                        content = content.replace("EndDate", EndDate);
//                        content = content.replace("Fee", Fee);
//                        content = content.replace("ProjectDesc", ProjectDesc);
//                        content = content.replace("Responsibility", Responsibility);
//                        content = content.replace("Role", Role);
//                        $("#hrEmployeeProjects").append(content);
//                    }
//                }
//            });
//            //获取教育信息
//            url = "../Extend/AjaxData/jsonlist.aspx?entity=hrEmployeeEducations&condition=EmployeeID='" + empId + "'";
//            $.get(url, function (d, s) {
//                var list = eval("(" + d + ")");
//                if (list.total > 0) {
//                    $("#hrEmployeeEducations").append("<br /><span style='color: #0000C6; font-size: large;'>教育经历：</span>");
//                    for (var o in list.rows) {
//                        var SchoolName = list.rows[o].SchoolName; //学校名称
//                        var Major = list.rows[o].Major; //主修专业
//                        var Degree = list.rows[o].Degree; //学位
//                        var EnterDate = list.rows[o].EnterDate; //入学日期
//                        var GraduateDate = list.rows[o].GraduateDate; //毕业日期
//                        var Graduated = list.rows[o].Graduated; //毕业证书
//                        var MajorDesc = list.rows[o].MajorDesc; //专业描述
//                        var MainCourse = list.rows[o].MainCourse; //主修课程
//                        var content = "<table style='width: 1100px'><tbody><tr><td align='right' class='style7'>学校名称：</td><td class='style4'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='SchoolName'/></td><td align='right' class='style3'>主修专业：</td><td class='style2'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='Major' /></td><td align='right' class='style8'>入学日期：</td><td class='style1'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='EnterDate'/></td> <td align='right' class='style7'>毕业日期:</td> <td><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='GraduateDate'/></td> </tr><tr><td align='right' class='style7'>学位：</td><td class='style6'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value ='Degree'/></td><td align='right' class='style3'>毕业证书：</td><td class='style2'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='Graduated'/></td><td class='style8'>&nbsp;</td><td class='style1' colspan='3'>&nbsp;</td></tr><tr><td align='right' class='style7'>专业描述:</td><td class='style2' colspan='3'><textarea style='background-color: whitesmoke;' class='textarea1'  rows='3' cols='20' name='S1' readonly='readonly'>MajorDesc</textarea></td><td align='right' class='style8'>主修课程：</td><td class='style1' colspan='3'><textarea style='background-color: whitesmoke;' class='textarea2' rows='3' cols='20'  name='S2' readonly='readonly'>MainCourse</textarea></td></tr></tbody></table>";
//                        content = content.replace("SchoolName", SchoolName);
//                        content = content.replace("Major", Major);
//                        content = content.replace("Degree", Degree);
//                        content = content.replace("EnterDate", EnterDate);
//                        content = content.replace("GraduateDate", GraduateDate);
//                        content = content.replace("Graduated", Graduated);
//                        content = content.replace("MajorDesc", MajorDesc);
//                        content = content.replace("MainCourse", MainCourse);
//                        $("#hrEmployeeEducations").append(content);
//                    }
//                }
//            });
//            //获取培训经历
//            url = "../Extend/AjaxData/jsonlist.aspx?entity=hrEmployeeTrainings&condition=EmployeeID='" + empId + "'";
//            $.get(url, function (d, s) {
//                var list = eval("(" + d + ")");
//                if (list.total > 0) {
//                    $("#hrEmployeeTrainings").append("<br /><span style='color: #0000C6; font-size: large;'>培训经历：</span>");
//                    for (var o in list.rows) {
//                        var TraniningOrganization = list.rows[o].TraniningOrganization; //培训机构
//                        var TraniningCourse = list.rows[o].TraniningCourse; //培训课程
//                        var TrainingAddress = list.rows[o].TrainingAddress; //培训地址
//                        var BeginDate = list.rows[o].BeginDate; //开始日期
//                        var EndDate = list.rows[o].EndDate; //结束日期
//                        var Certificate = list.rows[o].Certificate; //证书
//                        var Summarize = list.rows[o].Summarize; //培训总结
//                        var content = "<table style='width: 1100px'><tbody><tr><td align='right' class='style7'>培训机构：</td><td class='style4'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='TraniningOrganization'/></td><td align='right' class='style3'>培训课程：</td><td class='style2'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='TraniningCourse' /></td><td align='right' class='style8'>开始时间：</td><td class='style1'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='BeginDate'/></td> <td align='right' class='style7'>结束时间:</td> <td><input style='background-color: whitesmoke;' type='text' readonly='readonly' value='EndDate'/></td> </tr><tr><td align='right' class='style7'>证书：</td><td class='style6'><input style='background-color: whitesmoke;' type='text' readonly='readonly' value ='Certificate'/></td><td align='right' class='style3'>培训地址：</td><td class='style2' colspan='5'><input style='background-color: whitesmoke;' class='text1'  type='text' readonly='readonly' value='TrainingAddress'/></td></tr><tr><td align='right' class='style7'>培训总结:</td><td class='style2' colspan='7'><textarea style='background-color: whitesmoke;' class='textarea3'  rows='3' cols='20' name='S1' readonly='readonly'>Summarize</textarea></td></tr></tbody></table>";
//                        content = content.replace("TraniningOrganization", TraniningOrganization);
//                        content = content.replace("TraniningCourse", TraniningCourse);
//                        content = content.replace("TrainingAddress", TrainingAddress);
//                        content = content.replace("BeginDate", BeginDate);
//                        content = content.replace("EndDate", EndDate);
//                        content = content.replace("Certificate", Certificate);
//                        content = content.replace("Summarize", Summarize);
//                        $("#hrEmployeeTrainings").append(content);
//                    }
//                }
//            });
            //获取技能信息
        });
    </script>
    <style type="text/css">
       body                    
       {                            
           font-family: 宋体, Arial, Helvetica, sans-serif; 
           font-size: 12px;              
           color: #333333;                            
           background-color: #FFFFFF;                    
           }             
           select{width:99%;}                 
           .td_text                
           {               
               text-align:right;              
           }          
            .td_value          
            {              
                text-align:left;          
            }                 
            textarea                    
            {                            
                width: 98%;
                background-color: whitesmoke;
            }
            input
            {
                background-color: whitesmoke;
            }
     </style>
</head>
<body>
<div id="wrap">
    <div id="htmlContent" style="width:100%">
        <br />
	<div id="divHTML">
	<table>
		<tbody>
			<tr>
				<td class="td_text">
					工号：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="EmployeeCode" id="EmployeeCode" name="EmployeeCode" type="text" /></td>
				<td class="td_text">
					姓名：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="CName" id="CName" name="CName" type="text" /></td>
				<td class="td_text">
					曾用名：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="EName" id="EName" name="EName" type="text" /></td>
			</tr>
			<tr>
				<td class="td_text">
					身份证号码：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="IDCardNO" id="IDCardNO" name="IDCardNO" type="text" /></td>
				<td class="td_text">
					性别：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="Gender" id="Gender" name="Gender" /></td>
				<td class="td_text">
					部门：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" id="DepartmentID" name="DepartmentID" type="text" /></td>
			</tr>
			<tr>
				<td class="td_text">
					现任岗位：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="PostID" id="PostID" name="PostID"/></td>
				<td class="td_text">
					职级：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="PositionLevel" id="PositionLevel" name="PositionLevel" /></td>
				<td class="td_text">
					入职日期：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="JoinDate" id="JoinDate" name="JoinDate" type="text" /></td>
			</tr>
			<tr>
				<td class="td_text">
					试用期限：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="ProbationPeriod" id="ProbationPeriod" name="ProbationPeriod" /></td>
				<td class="td_text">
					联系电话：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="PhoneNo" id="PhoneNo" name="PhoneNo" type="text" /></td>
				<td class="td_text">
					Email：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="Email" id="Email" name="Email" type="text" /></td>
			</tr>
			<tr>
				<td class="td_text">
					民族：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="Nationality" id="Nationality" name="Nationality"/></td>
				<td class="td_text">
					婚姻：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="MaritalStatus" id="MaritalStatus" name="MaritalStatus" /></td>
				<td class="td_text">
					籍贯：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="Hometown" id="Hometown" name="Hometown" type="text" /></td>
			</tr>
			<tr>
				<td class="td_text">
					出生日期：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="BirthDate" id="BirthDate" name="BirthDate" type="text" /></td>
				<td class="td_text">
					年龄：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" id="age" name="age" type="text" /></td>
				<td class="td_text">
					最高学历：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="TopDegree" id="TopDegree" name="TopDegree" /></td>
			</tr>
			<tr>
				<td class="td_text">
					户口所在地：</td>
				<td class="td_value" colspan="5">
					<input readonly="readonly" runat="server" datafields="HouseholdRegistration" id="HouseholdRegistration" name="HouseholdRegistration" style="width: 98%" type="text" /></td>
			</tr>
			<tr>
				<td class="td_text">
					人事档案所在地：</td>
				<td class="td_value" colspan="5">
					<input readonly="readonly" runat="server" datafields="PersonnelArchivesArea" id="PersonnelArchivesArea" name="PersonnelArchivesArea" style="width: 98%" type="text" /></td>
			</tr>
			<tr>
				<td class="td_text">
					居住地址：</td>
				<td class="td_value" colspan="5">
					<input readonly="readonly" runat="server" datafields="Residence" id="Residence" name="Residence" type="text"  style="width: 98%"/></td>
			</tr>
			<tr>
				<td class="td_text">
					紧急联系人：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="UrgencyContactMan" id="UrgencyContactMan" name="UrgencyContactMan" type="text" /></td>
				<td class="td_text">
					紧急联系人电话：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="UrgencyContactPhoneNO" id="UrgencyContactPhoneNO" name="UrgencyContactPhoneNO" type="text" /></td>
				<td class="td_text">
					参加工作时间：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="JoinJobDate" id="JoinJobDate" name="JoinJobDate" type="text" /></td>
			</tr>
			<tr>
				<td class="td_text">
					社保卡号：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="SocialInsuranceNO" id="SocialInsuranceNO" name="SocialInsuranceNO" type="text" /></td>
				<td class="td_text">
					银行卡号：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="BankCardNO" id="BankCardNO" name="BankCardNO" type="text" /></td>
				<td class="td_text">
					住房公积金账号：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="HouseCardNO" id="HouseCardNO" name="HouseCardNO" type="text" /></td>
			</tr>
			<tr>
				<td class="td_text">
					血型：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="BloodType" id="BloodType" name="BloodType" /></td>
				<td class="td_text">
					招聘来源：</td>
				<td class="td_value">
					<input readonly="readonly" runat="server" datafields="ResumeSource" id="ResumeSource" name="ResumeSource" /></td>
				<td class="td_text">
					&nbsp;</td>
				<td class="td_value">
					&nbsp;</td>
			</tr>
			<tr>
				<td class="td_text">
					专长描述：</td>
				<td class="td_value" colspan="5">
					<textarea readonly="readonly" runat="server" cols="80" datafields="SpecialDesc" id="SpecialDesc" name="SpecialDesc" rows="4"></textarea></td>
			</tr>
			<tr>
				<td class="td_text">
					兴趣爱好：</td>
				<td class="td_value" colspan="5">
					<textarea readonly="readonly" runat="server" cols="80" datafields="Habits" id="Habits" name="Habits" rows="4"></textarea></td>
			</tr>
		</tbody>
	</table>
    </div>
    </div>
    <div id="hrEmployeeExperiences" >
    </div>
    <div id="hrEmployeeProjects" >
    </div>
    <div id="hrEmployeeEducations" >
    </div>
    <div id="hrEmployeeTrainings" >
    </div>
    <div id="hrEmployeeSkills" >
    </div>
</div>
</body>
</html>
